package com.outstanding.his.revisit.service.impl;

import java.util.Collection;

import com.outstanding.his.revisit.dao.IRevisitDao;
import com.outstanding.his.revisit.domain.Revisit;
import com.outstanding.his.revisit.service.IRevisitService;

public class RevisitService implements IRevisitService {

	private IRevisitDao revisitDao;

	public void setRevisitDao(IRevisitDao revisitDao) {
		this.revisitDao = revisitDao;
	}

	@Override
	public Revisit getRevisit(Integer revisitId) {
		return this.revisitDao.getRevisit(revisitId);
	}

	@Override
	public Collection<Revisit> getRevisitList() {
		return this.revisitDao.getRevisitList();
	}

	@Override
	public Revisit submitRevisit(Revisit revisit) {
		revisit = this.revisitDao.submitRevisit(revisit);
		return revisit;
	}

	@Override
	public Revisit updateRevisit(Revisit revisit) {
		revisit = this.revisitDao.updateRevisit(revisit);
		return revisit;
	}

}
